//
//  StatusBottomView.swift
//  weibo
//
//  Created by cmh on 15/9/6.
//  Copyright © 2015年 cmh. All rights reserved.
//

import UIKit

class StatusBottomView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)

        setupUI()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    // 设置控件
    private func setupUI() {
        
        // 背景色
        backgroundColor = UIColor(white: 0.95, alpha: 1.0)
        
        // 添加控件
        addSubview(retweetBtn)
        addSubview(commentBtn)
        addSubview(uilikeBtn)
        
        // 设置布局
        ff_HorizontalTile([retweetBtn, commentBtn, uilikeBtn], insets: UIEdgeInsetsZero)

    }

    // 懒加载控件
    // 转发
    private lazy var retweetBtn: UIButton = UIButton(title: "转发", imageName:  "timeline_icon_retweet", color: UIColor.darkGrayColor(), fontSize: 14)
    
    // 评论
    private lazy var commentBtn: UIButton = UIButton(title: "评论", imageName:  "timeline_icon_comment", color: UIColor.darkGrayColor(), fontSize: 14)
    
    // 赞
    private lazy var uilikeBtn: UIButton = UIButton(title: "赞", imageName:  "timeline_icon_unlike", color: UIColor.darkGrayColor(), fontSize: 14)


}
